<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.Date,java.text.SimpleDateFormat" %>
<%!
    public String getNowTime() {
        SimpleDateFormat df = new SimpleDateFormat("HH:mm");
        String nowTime = df.format(new Date());
        return nowTime;
    }
    String nowTime = getNowTime();
%>    
<!DOCTYPE html>
<html lang="en">
<head>
    <title>丝袜奶茶聊天室-登录</title>
    <!-- Meta tag Keywords -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Trendy Mobile Screens Responsive Widget,Login form widgets, Sign up Web forms , Login signup Responsive web form,Flat Pricing table,Flat Drop downs,Registration Forms,News letter Forms,Elements" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
    function hideURLbar(){ window.scrollTo(0,1); } </script>
    <!-- Meta tag Keywords -->
    <!-- css files -->
    <link href="css/style.css" rel="stylesheet" type="text/css" media="all">
    <link rel="stylesheet" href="css/font-awesome.css"> <!-- Font-Awesome-Icons-CSS -->
    <!-- //css files -->
    <!-- online-fonts -->
    <link href="//fonts.googleapis.com/css?family=Ropa+Sans:400,400i&amp;subset=latin-ext" rel="stylesheet">
    <!--//online-fonts -->
</head>
<body>
<div class="header">
    <h1>丝袜奶茶聊天室</h1>
</div>
<div class="w3-main">
    <!-- Main -->
    <div class="about-bottom main-agile book-form">
        <div class="header-top">
            <ul>
                <li><span></span></li>
                <li><span class="chrg"></span> </li>
                <li><%=nowTime %> </li>
            </ul>
        </div>
        <div class="form-w3l">
            <img src="images/2.jpg" alt="image">
            <h2 class="tittle">登录</h2>
            <form action="doLogin" method="post">
                <div class="form-date-w3-agileits">
                    <i class="fa fa-user w3-agile" aria-hidden="true"></i>
                    <input type="text" name="username" placeholder="Your Username" required>
                    <i class="fa fa-unlock-alt w3l2" aria-hidden="true"></i>
                    <input type="password" name="password" placeholder="Your Password" required>
                </div>
                <a href="#">Forgot Password?</a>
                <div class="make wow shake">
                    <input type="submit" value="Login">
                </div>
            </form>
        </div>
    </div>

    <div class="about-bottom main-agile book-form">
        <div class="header-top">
            <ul>
                <li><span></span></li>
                <li><span class="chrg"></span> </li>
                <li><%=nowTime %> </li>
            </ul>
        </div>
        <div class="form-w3l">
            <h3 class="tittle">注册</h3>
            <form action="register" method="post">
                <div class="form-date-w3-agileits">
                    <input type="text" name="username" placeholder="Your Username" required>
                    <input type="password" name="pwd1" placeholder="Your Password" required>
                    <input type="password" name="pwd2" placeholder="Confirm Password" required>
                    <input type="text" name="nickname" placeholder="Your Nickname" required>
                    <input type="email" name="email" placeholder="Your Email" required>
                    <input type="text" name="age" placeholder="Your Age" required>
                </div>
                <div class="make wow shake">
                    <input type="submit" value="Register">
                </div>
            </form>
        </div>
    </div>
</div>
<!-- //Main -->

<!-- footer -->
<div class="footer-w3l">
    <p>&copy; 2018 米青集团. All rights reserved | Design by <a href="http://w3layouts.com">W3layouts</a></p>
</div>
<!-- //footer -->
</body>
</html>